package com.imooc.authorization.common;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2016/8/18.
 */
public abstract class BaseEntiry {

    private Long id;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId(){
        return id;
    }

    public static <T extends BaseEntiry> Map<Long,T> idEtityMap(Collection<T> list){
        Map<Long,T> map = new HashMap<>();

        if (null==list || 0 ==list.size()){

            return map;
        }

        return map;


    }


}
